package cn.edu.sctu.sctu_lysd.biz;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.List;

import cn.edu.sctu.sctu_lysd.base.BasePresenter;
import cn.edu.sctu.sctu_lysd.base.BaseView;
import cn.edu.sctu.sctu_lysd.bean.JsonBaseBeen;
import cn.edu.sctu.sctu_lysd.bean.JsonBaseListBean;
import cn.edu.sctu.sctu_lysd.bean.ParcelData;

/**
 * Created by wangfuxin on 2017-04-06.
 */

public interface IndexBiz {

    interface Presenter extends BasePresenter {

        void isLogin();

        void intentToLogin();

        void showPlacePupWin(View view);

        void showDemandWin(View view);

        void getParcels(int page,int size);

        void logOut();

    }

    interface IndexBizView extends BaseView<IndexBiz.Presenter> {

        void alreadyLogin();

        void notLogin();

        void selectPlaceOver(String place);

        String getOriginPre();
        String getOriginDetail();

        void loadAvatarUrl(ImageView view);

        void getParcelsSuccess(List<ParcelData> data,int page);
        void getParcelsFailed(int page);

    }

}
